﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class MaintPersonDel : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["adminUserName"] == null)
        {
            Response.Redirect("login.aspx");
        }
        string deviceTypeId = Request.QueryString["maintPersonId"];
        MaintPerson maint = new MaintPerson();
        if (maint.DeleteMaintPersonName(Int32.Parse(deviceTypeId)))
            Response.Write("<script>alert('人员信息删除成功!');location.href='MaintPersonManage.aspx';</script>");
        else
            Response.Write("<script>alert('" + maint.ErrMessage + "');location.href='MaintPersonManage.aspx';</script>");
    }
}
